package com.xunlai.infra.permission.business.dao.entity.vo;

import com.xunlai.infra.permission.business.dao.entity.Member;
import com.xunlai.infra.permission.storage.entity.UserAccount;
import lombok.*;
import org.springframework.data.relational.core.mapping.MappedCollection;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serial;
import java.io.Serializable;

/**
 * @author liang
 * @date 9/12/23 7:36 PM
 */
@Data
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Table("system_user_account")
public class UserMemberVo extends UserAccount implements Serializable {

    @Serial
    private static final long serialVersionUID = -3504216005975499597L;

    @MappedCollection(idColumn = "account_id",keyColumn = "id")
    private Member member;
}
